﻿window.onload = function() {
    var parentWindowPNode = parent.document.getElementById(self.window.frameElement.id).parentNode.parentNode;
    var frameObj = parent.document.getElementById(window.frameElement.id);
    var frmheight = (document.body.clientHeight);
    frameObj.style.height = frmheight+10 + "px";
}